import hyRequest from '@/service'
import { localCache } from '@/utils/cache'
import { LOGIN_TOKEN } from '@/global/constans'
// 暴露所有角色
export function getEntireRoles() {
  return hyRequest.post({
    url: '/role/list',
    headers: {
      Authorization: `Bearer ${localCache.getCache(LOGIN_TOKEN)}`
    }
  })
}
// 暴露所有部门
export function getEntireDepartments() {
  return hyRequest.post({
    url: '/department/list',
    headers: {
      Authorization: `Bearer ${localCache.getCache(LOGIN_TOKEN)}`
    }
  })
}
